package test1231.test1;

public class MemberA extends MemberFather {
    int money;
    String name = super.getName();

    public MemberA() {
    }

    public MemberA(String name, int money) {
        this.name = name;
        this.money = money;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "MemberA{" +
                "name='" + name + '\'' +
                ", money=" + money +
                '}';
    }
    @Override
    public double allmoney() {
        return money;
    }
}
